# RUN: not --crash clangd -lit-test < %s 2> %t.err
# RUN: FileCheck %s < %t.err --check-prefixes=CHECK,CHECK-SYNC
# RUN: not --crash clangd -lit-test -sync=0 < %s 2> %t.async.err
# RUN: FileCheck %s < %t.async.err
{"jsonrpc":"2.0","id":0,"method":"initialize","params":{}}
---
{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{
  "uri":"test:///foo.cc",
  "languageId":"cpp",
  "text":"int x;\n#pragma clang __debug llvm_fatal_error"
}}}
---
{"jsonrpc":"2.0","id":1,"method":"sync","params":{}}
#      CHECK: Signalled during AST worker action: Build AST
# CHECK-NEXT:   Filename: foo.cc
# CHECK-SYNC: Signalled during AST worker action: Update
# CHECK-SYNC:   Filename: foo.cc
# CHECK-SYNC: Signalled while processing message:
# CHECK-SYNC:   "languageId":"cpp"
